package cn.laowen.org.query;


import lombok.Data;

@Data
public class DictionaryEditQuery {
    //每页展示条数
    private Integer dictPageSize = 5;
    //页码
    private Integer dictCurrentPage = 1;
    //关键字查询
    private String dictKeyword;

    //根据types_id查询数据字典
    private Long types_id;


    /**
     * 计算起始页位置
     * @return
     */
    public Integer getStart() {
        return (this.dictCurrentPage - 1) * dictPageSize;
    }


}
